package router

import (
	"gin-vue-admin/controller"
	"gin-vue-admin/middleware"

	"github.com/gin-gonic/gin"
)

func InitPostRouter(Router *gin.RouterGroup) {
	PostRouter := Router.Group("post").Use(middleware.OperationRecord())
	{
		PostRouter.GET("getPostList", controller.GetPostList)  // 分页获取部门列表
		PostRouter.POST("createPost", controller.CreatePost)   // 新增部门
		PostRouter.DELETE("deletePost", controller.DeletePost) // 删除部门
		PostRouter.PUT("updatePost", controller.UpdatePost)    // 查询部门
	}
}
